<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Officer extends CI_Controller {

    public function Officer() {
        parent::__construct();
        $this->load->model('user_model');
        $this->load->library('administrator_authenticate');
        $this->load->model('Officer_model');
    }

    public function officer_list() {
        $this->administrator_authenticate->check_login();
        $Officers = $this->Officer_model->getOfficer(check_get('term'));
        echo json_encode($Officers);
    }

  
}